package com.yidu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.dao.SnAuditMapper;
import com.yidu.dao.SnUserRoleMapper;
import com.yidu.model.SnUserRole;
import com.yidu.service.SnUserRoleService;

@Service
public class SnUserRoleServiceImpl implements SnUserRoleService{

	
	/**
	 * 用户角色dao
	 */
	@Resource
	SnUserRoleMapper snUserRoleDao;
	
	/**
	 * 查询显示所有
	 */
	@Override
	public List<SnUserRole> selectAll(Map<String, Object> map) {
		return snUserRoleDao.selectAll(map);
	}

	/**
	 * 查询行数
	 */
	@Override
	public int findCount(Map<String, Object> maps) {
		// TODO Auto-generated method stub
		return snUserRoleDao.findCount(maps);
	}
	
	/**
	 * 增加
	 */
	@Override
	public int insertSelective(SnUserRole record) {
		// TODO Auto-generated method stub
		return snUserRoleDao.insert(record);
	}



}
